import Vue from 'vue'
import App from './App.vue'
import router from './scripts/router'
import store from './scripts/store'
import mixins from './scripts/mixins'
import './assets/base.scss'

//使用mockjs 模拟返回数据
import Mock from './scripts/apis/mock'

import apis from './scripts/apis'
Vue.prototype.$apis = apis; // api接口挂载到vue实列上，要用的时候直接 this.$apis.articles.save(data)

import msg from './scripts/msg'
Vue.prototype.$msg = msg;// 消息组件封装到vue实列上，要用的时候直接 this.$msg.notify.success(title,content)

import consts from './scripts/consts'
window.consts = consts

//引入ElementUI
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI, {size: 'medium', zIndex: 2000});

import elementUIVerify from 'element-ui-verify'
Vue.use(elementUIVerify)



Vue.config.productionTip = false
Vue.mixin(mixins);
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
